/**
 * Copyright (C), 2023-2033
 */
package com.goaly.gpt.model;

import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Builder.Default;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * XfsGptMessage
 *
 * @author: lys
 * @date: 2023/6/26 14:41
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class XfsGptMessage implements Serializable {

    private static final long serialVersionUID = -12102409711501070L;

    public XfsGptMessage(String content) {
        this.content = content;
    }

    /**
     * 角色 - system,user,assistant
     */
    @Default
    private String role = "user";

    /**
     * 模型类别
     */
    @Default
    private String model = "code-davinci-002";

    /**
     * 消息内容
     */
    private String content;
}
